<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
<head>
<base href="<%=basePath%>">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>教学质量评估平台</title>

<link href="jsp/evaluate/css/bootstrap.min.css" rel="stylesheet">
<link href="jsp/evaluate/css/datepicker3.css" rel="stylesheet">
<link href="jsp/evaluate/css/styles.css" rel="stylesheet">
	<script src="jsp/evaluate/js/jquery-1.11.1.min.js"></script>
	<script src="jsp/evaluate/js/bootstrap.min.js"></script>
	<%--<script src="jsp/evaluate/js/chart.min.js"></script>
	<script src="jsp/evaluate/js/chart-data.js"></script>
	<script src="jsp/evaluate/js/easypiechart.js"></script>
	<script src="jsp/evaluate/js/easypiechart-data.js"></script>--%>
	<script src="jsp/evaluate/js/bootstrap-datepicker.js"></script>
	<script src="http://cdn.static.runoob.com/libs/angular.js/1.4.6/angular.min.js"></script>
	<script src="jsp/common/js/md5.js"></script>
	<script src="jsp/evaluate/jsofjspf/index.js"></script>

<!--[if lt IE 9]>
<script src="jsp/evaluate/js/html5shiv.js"></script>
<script src="jsp/evaluate/js/respond.min.js"></script>
<![endif]-->
	<style type="text/css">
		a{
			cursor: pointer;
		}
	</style>

</head>

<body ng-app="mainapp">
	<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation" ng-controller="topcontroller">
		<div class="container-fluid">
			<div class="navbar-header">
				<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#sidebar-collapse">
					<span class="sr-only">Toggle navigation</span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</button>
				<a class="navbar-brand"><span>Study</span>&nbsp;Evaluate</a>
				<ul class="user-menu">
					<li class="dropdown pull-right">
						<a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-user"></span> User <span class="caret"></span></a>
						<ul class="dropdown-menu" role="menu">
							<li ng-click="modifyPassWord()"><a><span class="glyphicon glyphicon-cog"></span> 修改密码</a></li>
							<li ng-click="offFunctionOk()"><a><span class="glyphicon glyphicon-log-out"></span> 注销</a></li>
						</ul>
					</li>
				</ul>
			</div>
		</div><!-- /.container-fluid -->
	</nav>
		
	<div id="sidebar-collapse" class="col-sm-3 col-lg-2 sidebar" ng-controller="indexcontroller">
		<form role="search">
			<div class="form-group">
				<!--<input type="text" class="form-control" placeholder="Search">-->
				<span>欢迎您！&nbsp;<span style="color: #00a2ca;" ng-bind="usernameOfLoger"></span>
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;身份:&nbsp;
					<span style="color: #00a2ca;" ng-bind="roleOfLoger=='student'?'学生':(roleOfLoger=='teacher'?'教师':(roleOfLoger=='leader'?'领导':'管理员'))"></span></span>
			</div>
		</form>
		<ul class="nav menu">
			<!--学生-->
			<li ng-click="rightDiv(constRef[0][3])" ng-class="{active:activeStatus == 3}"><a><span class="glyphicon glyphicon-stats"></span>&nbsp;<span ng-bind="constRef[0][3]"></span></a></li>
			<li ng-click="rightDiv(constRef[0][0])" ng-class="{active:activeStatus == 0}" ng-if="roleOfLoger == 'student'"><a><span class="glyphicon glyphicon-dashboard"></span>&nbsp;<span ng-bind="constRef[0][0]"></span></a></li>
			<%--<li ng-click="rightDiv(constRef[0][1])" ng-class="{active:activeStatus == 1}" ng-if="roleOfLoger == 'student'"><a><span class="glyphicon glyphicon-th"></span>&nbsp;<span ng-bind="constRef[0][1]"></span></a></li>
			<li ng-click="rightDiv(constRef[0][2])" ng-class="{active:activeStatus == 2}" ng-if="roleOfLoger == 'student'"><a><span class="glyphicon glyphicon-th"></span>&nbsp;<span ng-bind="constRef[0][2]"></span></a></li>--%>
			<!--教师-->
			<li ng-click="rightDiv(constRef[1][0])" ng-class="{active:activeStatus == 5}" ng-if="roleOfLoger == 'teacher'"><a><span class="glyphicon glyphicon-list-alt"></span>&nbsp;<span ng-bind="constRef[1][0]"></span></a></li>
			<li ng-click="rightDiv(constRef[1][1])" ng-class="{active:activeStatus == 4}" ng-if="roleOfLoger == 'teacher'"><a><span class="glyphicon glyphicon-pencil"></span>&nbsp;<span ng-bind="constRef[1][1]"></span></a></li>
			<!--领导-->
			<li ng-click="rightDiv(constRef[1][2])" ng-class="{active:activeStatus == 6}" ng-if="roleOfLoger == 'leader'"><a><span class="glyphicon glyphicon-pencil"></span>&nbsp;<span ng-bind="constRef[1][2]"></span></a></li>
			<!--管理员-->
			<%--<li ng-if="roleOfLoger == 'root'"><a><span class="glyphicon glyphicon-pencil"></span> 评估管理</a></li>--%>
			<li ng-click="rightDiv(constRef[1][3])" ng-class="{active:activeStatus == 7}" ng-if="roleOfLoger == 'root'"><a><span class="glyphicon glyphicon-info-sign"></span>&nbsp;<span ng-bind="constRef[1][3]"></span></a></li>
			<!--<li class="parent ">
				<a href="#">
					<span class="glyphicon glyphicon-list"></span> Dropdown <span data-toggle="collapse" href="#sub-item-1" class="icon pull-right"><em class="glyphicon glyphicon-s glyphicon-plus"></em></span> 
				</a>
				<ul class="children collapse" id="sub-item-1">
					<li>
						<a class="" href="#">
							<span class="glyphicon glyphicon-share-alt"></span> Sub Item 1
						</a>
					</li>
					<li>
						<a class="" href="#">
							<span class="glyphicon glyphicon-share-alt"></span> Sub Item 2
						</a>
					</li>
					<li>
						<a class="" href="#">
							<span class="glyphicon glyphicon-share-alt"></span> Sub Item 3
						</a>
					</li>
				</ul>
			</li>-->
			<li role="presentation" class="divider"></li>
			<!--<li><a href="login.html"><span class="glyphicon glyphicon-user"></span> Login Page</a></li>-->
		</ul>
		<div class="attribution">Welcome <a title="教师教学质量">教师教学质量</a> - <a title="评估平台">评估平台</a></div>
	</div><!--/.sidebar-->
		
	<div class="col-sm-9 col-sm-offset-3 col-lg-10 col-lg-offset-2 main" style="padding: 10px;"><%--右侧区域	--%>

		<div class="ng-hide" ng-show="nav == -1">init</div>
		<div class="ng-hide" ng-show="nav == 0">
			<%@ include file="jspf/myCourse.jspf" %>
		</div>
		<%--<div class="ng-hide" ng-show="nav == 1">
		</div>
		<div class="ng-hide" ng-show="nav == 2">
		</div>--%>
		<div class="ng-hide" ng-show="nav == 3">
			<%@ include file="jspf/myInfo.jspf" %>
		</div>
		<div class="ng-hide" ng-show="nav == 4">
			<%@ include file="jspf/teacherEvaluateSelf.jspf" %>
		</div>
		<div class="ng-hide" ng-show="nav == 5">
			<%@ include file="jspf/teacherRecord.jspf" %>
		</div>
		<div class="ng-hide" ng-show="nav == 6">
			<%@ include file="jspf/myTeachers.jspf" %>
		</div>
		<div class="ng-hide" ng-show="nav == 7">
			<%@ include file="jspf/userManage.jspf" %>
		</div>

		<%--<div class="row">
			<ol class="breadcrumb">
				<li><a href="#"><span class="glyphicon glyphicon-home"></span></a></li>
				<li class="active">Dashboard</li>
			</ol>
		</div><!--/.row-->--%>
		
		<%--<div class="row">
			<div class="col-lg-12">
				<h1 class="page-header">Dashboard</h1>
			</div>
		</div><!--/.row-->
        
		<div class="row">
			<div class="col-xs-12 col-md-6 col-lg-3">
				<div class="panel panel-blue panel-widget ">
					<div class="row no-padding">
						<div class="col-sm-3 col-lg-5 widget-left">
							<em class="glyphicon glyphicon-shopping-cart glyphicon-l"></em>
						</div>
						<div class="col-sm-9 col-lg-7 widget-right">
							<div class="large">120</div>
							<div class="text-muted">New Orders</div>
						</div>
					</div>
				</div>
			</div>
			<div class="col-xs-12 col-md-6 col-lg-3">
				<div class="panel panel-orange panel-widget">
					<div class="row no-padding">
						<div class="col-sm-3 col-lg-5 widget-left">
							<em class="glyphicon glyphicon-comment glyphicon-l"></em>
						</div>
						<div class="col-sm-9 col-lg-7 widget-right">
							<div class="large">52</div>
							<div class="text-muted">Comments</div>
						</div>
					</div>
				</div>
			</div>
			<div class="col-xs-12 col-md-6 col-lg-3">
				<div class="panel panel-teal panel-widget">
					<div class="row no-padding">
						<div class="col-sm-3 col-lg-5 widget-left">
							<em class="glyphicon glyphicon-user glyphicon-l"></em>
						</div>
						<div class="col-sm-9 col-lg-7 widget-right">
							<div class="large">24</div>
							<div class="text-muted">New Users</div>
						</div>
					</div>
				</div>
			</div>
			<div class="col-xs-12 col-md-6 col-lg-3">
				<div class="panel panel-red panel-widget">
					<div class="row no-padding">
						<div class="col-sm-3 col-lg-5 widget-left">
							<em class="glyphicon glyphicon-stats glyphicon-l"></em>
						</div>
						<div class="col-sm-9 col-lg-7 widget-right">
							<div class="large">25.2k</div>
							<div class="text-muted">Visitors</div>
						</div>
					</div>
				</div>
			</div>
		</div><!--/.row-->
		
		<div class="row">
			<div class="col-lg-12">
				<div class="panel panel-default">
					<div class="panel-heading">Site Traffic Overview</div>
					<div class="panel-body">
						<div class="canvas-wrapper">
							<canvas class="main-chart" id="line-chart" height="200" width="600"></canvas>
						</div>
					</div>
				</div>
			</div>
		</div><!--/.row-->

		<div class="row">
			<div class="col-xs-6 col-md-3">
				<div class="panel panel-default">
					<div class="panel-body easypiechart-panel">
						<h4>New Orders</h4>
						<div class="easypiechart" id="easypiechart-blue" data-percent="92" ><span class="percent">92%</span>
						</div>
					</div>
				</div>
			</div>
			<div class="col-xs-6 col-md-3">
				<div class="panel panel-default">
					<div class="panel-body easypiechart-panel">
						<h4>Comments</h4>
						<div class="easypiechart" id="easypiechart-orange" data-percent="65" ><span class="percent">65%</span>
						</div>
					</div>
				</div>
			</div>
			<div class="col-xs-6 col-md-3">
				<div class="panel panel-default">
					<div class="panel-body easypiechart-panel">
						<h4>New Users</h4>
						<div class="easypiechart" id="easypiechart-teal" data-percent="56" ><span class="percent">56%</span>
						</div>
					</div>
				</div>
			</div>
			<div class="col-xs-6 col-md-3">
				<div class="panel panel-default">
					<div class="panel-body easypiechart-panel">
						<h4>Visitors</h4>
						<div class="easypiechart" id="easypiechart-red" data-percent="27" ><span class="percent">27%</span>
						</div>
					</div>
				</div>
			</div>
		</div><!--/.row-->
								
		<div class="row">
			<div class="col-md-8">
			
				<div class="panel panel-default chat">
					<div class="panel-heading" id="accordion"><span class="glyphicon glyphicon-comment"></span> Chat</div>
					<div class="panel-body">
						<ul>
							<li class="left clearfix">
								<span class="chat-img pull-left">
									<img src="http://placehold.it/80/30a5ff/fff" alt="User Avatar" class="img-circle" />
								</span>
								<div class="chat-body clearfix">
									<div class="header">
										<strong class="primary-font">John Doe</strong> <small class="text-muted">32 mins ago</small>
									</div>
									<p>
										Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla ante turpis, rutrum ut ullamcorper sed, dapibus ac nunc. Vivamus luctus convallis mauris, eu gravida tortor aliquam ultricies. 
									</p>
								</div>
							</li>
							<li class="right clearfix">
								<span class="chat-img pull-right">
									<img src="http://placehold.it/80/dde0e6/5f6468" alt="User Avatar" class="img-circle" />
								</span>
								<div class="chat-body clearfix">
									<div class="header">
										<strong class="pull-left primary-font">Jane Doe</strong> <small class="text-muted">6 mins ago</small>
									</div>
									<p>
										Mauris dignissim porta enim, sed commodo sem blandit non. Ut scelerisque sapien eu mauris faucibus ultrices. Nulla ac odio nisl. Proin est metus, interdum scelerisque quam eu, eleifend pretium nunc. Suspendisse finibus auctor lectus, eu interdum sapien.
									</p>
								</div>
							</li>
							<li class="left clearfix">
								<span class="chat-img pull-left">
									<img src="http://placehold.it/80/30a5ff/fff" alt="User Avatar" class="img-circle" />
								</span>
								<div class="chat-body clearfix">
									<div class="header">
										<strong class="primary-font">John Doe</strong> <small class="text-muted">32 mins ago</small>
									</div>
									<p>
										Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla ante turpis, rutrum ut ullamcorper sed, dapibus ac nunc. Vivamus luctus convallis mauris, eu gravida tortor aliquam ultricies. 
									</p>
								</div>
							</li>
						</ul>
					</div>
					
					<div class="panel-footer">
						<div class="input-group">
							<input id="btn-input" type="text" class="form-control input-md" placeholder="Type your message here..." />
							<span class="input-group-btn">
								<button class="btn btn-success btn-md" id="btn-chat">Send</button>
							</span>
						</div>
					</div>
				</div>
				
			</div><!--/.col-->
			
			<div class="col-md-4">
			
				<div class="panel panel-blue">
					<div class="panel-heading dark-overlay"><span class="glyphicon glyphicon-check"></span>To-do List</div>
					<div class="panel-body">
						<ul class="todo-list">
						<li class="todo-list-item">
								<div class="checkbox">
									<input type="checkbox" id="checkbox" />
									<label for="checkbox">Make a plan for today</label>
								</div>
								<div class="pull-right action-buttons">
									<a href="#"><span class="glyphicon glyphicon-pencil"></span></a>
									<a href="#" class="flag"><span class="glyphicon glyphicon-flag"></span></a>
									<a href="#" class="trash"><span class="glyphicon glyphicon-trash"></span></a>
								</div>
							</li>
							<li class="todo-list-item">
								<div class="checkbox">
									<input type="checkbox" id="checkbox" />
									<label for="checkbox">Update Basecamp</label>
								</div>
								<div class="pull-right action-buttons">
									<a href="#"><span class="glyphicon glyphicon-pencil"></span></a>
									<a href="#" class="flag"><span class="glyphicon glyphicon-flag"></span></a>
									<a href="#" class="trash"><span class="glyphicon glyphicon-trash"></span></a>
								</div>
							</li>
							<li class="todo-list-item">
								<div class="checkbox">
									<input type="checkbox" id="checkbox" />
									<label for="checkbox">Send email to Jane</label>
								</div>
								<div class="pull-right action-buttons">
									<a href="#"><span class="glyphicon glyphicon-pencil"></span></a>
									<a href="#" class="flag"><span class="glyphicon glyphicon-flag"></span></a>
									<a href="#" class="trash"><span class="glyphicon glyphicon-trash"></span></a>
								</div>
							</li>
							<li class="todo-list-item">
								<div class="checkbox">
									<input type="checkbox" id="checkbox" />
									<label for="checkbox">Drink coffee</label>
								</div>
								<div class="pull-right action-buttons">
									<a href="#"><span class="glyphicon glyphicon-pencil"></span></a>
									<a href="#" class="flag"><span class="glyphicon glyphicon-flag"></span></a>
									<a href="#" class="trash"><span class="glyphicon glyphicon-trash"></span></a>
								</div>
							</li>
							<li class="todo-list-item">
								<div class="checkbox">
									<input type="checkbox" id="checkbox" />
									<label for="checkbox">Do some work</label>
								</div>
								<div class="pull-right action-buttons">
									<a href="#"><span class="glyphicon glyphicon-pencil"></span></a>
									<a href="#" class="flag"><span class="glyphicon glyphicon-flag"></span></a>
									<a href="#" class="trash"><span class="glyphicon glyphicon-trash"></span></a>
								</div>
							</li>
							<li class="todo-list-item">
								<div class="checkbox">
									<input type="checkbox" id="checkbox" />
									<label for="checkbox">Tidy up workspace</label>
								</div>
								<div class="pull-right action-buttons">
									<a href="#"><span class="glyphicon glyphicon-pencil"></span></a>
									<a href="#" class="flag"><span class="glyphicon glyphicon-flag"></span></a>
									<a href="#" class="trash"><span class="glyphicon glyphicon-trash"></span></a>
								</div>
							</li>
						</ul>
					</div>
					<div class="panel-footer">
						<div class="input-group">
							<input id="btn-input" type="text" class="form-control input-md" placeholder="Add new task" />
							<span class="input-group-btn">
								<button class="btn btn-primary btn-md" id="btn-todo">Add</button>
							</span>
						</div>
					</div>
				</div>
								
			</div><!--/.col-->
		</div><!--/.row-->--%>

	</div>	<!--/.main-->

	<!-- 修改密码  模态弹出框 -->
	<div class="modal fade" id="modalid-modifyPWD">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
					<!--  >模态弹出窗标题<  -->
					<h4 class="modal-title">修改密码</h4>
				</div>
				<div class="modal-body">
					<!--  >模态弹出窗主体内容<  -->
					<form class="form-horizontal" role="form">
						<div class="form-group">
							<label class="col-sm-2 col-sm-offset-2 control-label">旧密码</label>
							<div class="col-sm-6">
								<input type="text" class="form-control" name="username" ng-model="editPassWord" >
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-sm-offset-2 control-label">新密码</label>
							<div class="col-sm-6">
								<input type="text" class="form-control" name="email" ng-model="editPassWordNew" >
							</div>
						</div>
					</form>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-success" ng-click="modifyPWD()" data-dismiss="modal">确定</button>
					<button type="button" class="btn btn-danger" data-dismiss="modal">取消</button>
				</div>
			</div><!-- /.modal-content -->
		</div><!-- /.modal-dialog -->
	</div><!-- /.modal -->

	<!-- 修改密码成功后注销 模态弹出框-->
	<div class="modal fade" id="modalid-mpswoffconf">
		<div class="modal-dialog modal-sm">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
					<h4 class="modal-title">提示信息</h4>
				</div>
				<div class="modal-body">
					<p><span ng-bind="justForModalInfomation"></span></p>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-success" ng-click="offFunction()" data-dismiss="modal">确定</button>
				</div>
			</div><!-- /.modal-content -->
		</div><!-- /.modal-dialog -->
	</div><!-- /.modal -->

	<!-- 注销确认 模态弹出框-->
	<div class="modal fade" id="modalid-offconf">
		<div class="modal-dialog modal-sm">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
					<h4 class="modal-title">提示信息</h4>
				</div>
				<div class="modal-body">
					<p>确认要注销吗?</p>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-default" data-dismiss="modal" ng-click="offFunction()">确定</button>
					<button type="button" class="btn btn-danger" data-dismiss="modal">取消</button>
				</div>
			</div><!-- /.modal-content -->
		</div><!-- /.modal-dialog -->
	</div><!-- /.modal -->

	<script>
		/*$('#calendar').datepicker({
		});*/

		!function ($) {
		    $(document).on("click","ul.nav li.parent > a > span.icon", function(){          
		        $(this).find('em:first').toggleClass("glyphicon-minus");      
		    }); 
		    $(".sidebar span.icon").find('em:first').addClass("glyphicon-plus");
		}(window.jQuery);

		$(window).on('resize', function () {
		  if ($(window).width() > 768) $('#sidebar-collapse').collapse('show')
		})
		$(window).on('resize', function () {
		  if ($(window).width() <= 767) $('#sidebar-collapse').collapse('hide')
		})
	</script>

</body>

</html>
